﻿using System;

namespace WiMo.Games.Drawables
{
    public interface ISpriteLine : ISprite
    {
        Location Start { get; set; }
        Location End { get; set; }
        Color LineColor { get; set; }
        int Width { get; set; }
    }

    public abstract class SpriteLineBase : SpriteBase, ISpriteLine
    {
        private Location _start;
        public virtual Location Start
        {
            get
            {
                return _start;
            }
            set
            {
                _start = new Location((int)(Scale.X * value.X), (int)(Scale.Y * value.Y)); 
            }
        }
        private Location _end;
        public virtual Location End
        {
            get
            {
                return _end;
            }
            set
            {
                _end = new Location((int)(Scale.X * value.X), (int)(Scale.Y * value.Y)); 
            }
        }
        public virtual Color LineColor { get; set; }
        public virtual int Width { get; set; }
    }
}
